import React, { useEffect, useState } from 'react'
//3.引入路由器与路由
import { Routes,Route } from "react-router-dom"
import Login from './components/Login'
import List from './components/List'
export default function App() {
    return (
        <div className="outer">
            {/* 4.配置路由，path路径，element组件 */}
            <Routes>
                <Route path="login" element={<Login/>}/>
                <Route path="List" element={<List/>}/>
            </Routes>
        </div>
    )
}
